<?php $cnf=Zend_Registry::get('cnf')?>
  <?php if ($cnf->debug->on): ?>
  <b class="error_info"><?php echo $this->message ?></b> 
  <h3>Exception information:</h3> 
  <p> 
      <b>Message:</b> <?php echo $this->exception->getMessage() ?> 
  </p> 

  <h3>Stack trace:</h3> 
  <pre style="width: 100%;overflow: scroll;background-color: white;"><?php echo $this->exception->getTraceAsString() ?> 
  </pre> 

  <h3>Request Parameters:</h3> 
  <pre><?php var_dump($this->request->getParams()) ?> 
  </pre> 
  
  <?php else:?>
  <div style="margin-top:30px;">
  	  <?php if ($this->body):?>
  	  	  <?php echo $this->body; ?>
  	  <?php else:?>
		  <h2>Ошибка</h2>
		  <p>
		  <?php echo $this->message;?>
		  </p>
	  <?php endif;?>
  </div>
<?php endif ?>

